package com.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.OrderBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(url = "http://127.0.0.1:8881/", name = "order")
//@RequestMapping("myOrder")
public interface OrderService {
    @GetMapping("/myOrder/myOrderList")
    public Page<OrderBean> myOrderList(@RequestParam("pageNO") Integer pageNO,
                                       @RequestParam("username") String username);

    @GetMapping("/myOrder/updateStatus")
    public String updateStatus(@RequestParam("orderId") Integer orderId);
}
